﻿/*
===============================================================================
*文件名称(File Name) ConfigHelper
*功能描述(Description):
*数据表(Tables):
*作者(Author): 赵高磊
*日期(Create Date):11/30/2015 4:01:13 PM
*修改记录(Revision History):
* V1.0.0.0 Created by 赵高磊 at 11/30/2015 4:01:13 PM
===============================================================================
*/

using Microsoft.Azure;

namespace ServiceBus.Core
{
    public class ConfigHelper
    {
        /// <summary>
        ///     获取指定key对应的value
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        public static string GetValue(string key)
        {
            var result = CloudConfigurationManager.GetSetting(key);
            return string.IsNullOrEmpty(result) ? "" : result.Trim();
        }
    }
}